#!/bin/bash
mkdir test
ls -a -X > test/list
mkdir test/links
ln test/list test/links/list_link
rm test/list
nano test/links/list_link
find /etc -name *.conf -type f > list_conf
find /etc -name *.d -type d > list_d
cat list_conf list_d > list_conf_d
ln -s list_conf_d test/links/list_conf_d_link
more test/links/list_conf_d_link
mkdir test/.sub
cp list_conf_d test/.sub/
cp -b list_conf_d test/.sub/
mv test/.sub/list_conf_d~ test/.sub/list_etc
